package cn.funeralobjects.urms.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;

/**
 * @author FuneralObjects
 * Create date: 2020/6/10 2:57 PM
 */
@Data
@Accessors(chain = true)
@Table(name = "t_tag_user_res")
@Entity
public class ETagUserRes {
    @EmbeddedId
    private ETagUserResPk pk;

    /**
     * 标签类型编码
     */
    private String tagTypeCode;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_res_id", insertable = false, updatable = false)
    @MapsId("userResId")
    private EUserRes eUserRes;
}
